{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">会员消费记录</h6>
<div class="content">
<form name="searchform" action="{APP_PATH}index.php?m=member&c=index&a=pays&t=3" method="get" >
<input type="hidden" value="member" name="m">
<input type="hidden" value="index" name="c">
<input type="hidden" value="pays" name="a">
		<div class="search">
		交易时间  {form::date('info[start_addtime]',$start_addtime)} 到   {form::date('info[end_addtime]',$end_addtime)}
		{form::select($trade_status,$status,'name="info[status]"', L('all_status'))}  
		手机号码  <input name="mobile" type="text" value="" class="input-text">
		<input type="submit" value="查询" class="button" name="dosubmit">
		</div>
</form>
<table width="100%" cellspacing="0"  class="table-list">
        <thead>
            <tr>
            <th width="5%">ID</th>
            <th width="20%">会员手机号</th>
            <th width="30%">消费内容</th>
            <th width="15%">时间</th>
            <th width="8%">金额</th>
            <th width="8%">状态</th>
            </tr>
        </thead>
    <tbody>
	{loop $infos $info} 
	<tr>
	<? 
		$sj=$this->db->query("SELECT * FROM phpcms_member WHERE userid=".$info[userid]);
		$sj=mysql_fetch_assoc($sj);
	?>
	<td width="5%" align="center">{$info['id']}</td>
	<td  width="20%" align="center">{$sj['mobile']}</td>
	<td width="30%" align="center">{$info['paydes']}</td>
	<td width="15%" align="center">{date('Y-m-d H:i:s',$info['time'])}</td>
	<td width="8%" align="center">{$info['price']}</td>
	<td width="8%" align="center">{if $info['is_pay']==0}付款中{elseif $info['is_pay']==-1}已取消{elseif $info['is_pay']==2}已付款{else}已取消{/if}</td>
	</tr>
	{/loop}
    </tbody>
    </table>

 <div id="pages"> {$pages}</div>
</div>
<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
</div>

</div>
</div>
{template 'member', 'footer'}
